package com.hdjk.view.callback;

import com.lst.projectlib.entity.Msg;

import okhttp3.Response;

/**
 * Created by sxy on 2017/11/9.
 */

public abstract class IsFavoritedCallBack extends MsgCallBack {

    @Override
    public Msg parseNetworkResponse(Response response, int id)
            throws Exception {
        Msg msg = super.parseNetworkResponse(response,id);
        int re = (int) msg.getData();
        if (re == 1)
            msg.setData(true);
        if (re == 0)
            msg.setData(false);

        return msg;
    }
}
